package one.stand.service;

import one.stand.model.OrdersModel;
import one.stand.model.ResultModel;
import one.stand.request.CompanyRoyaltyRequest;
import one.stand.request.CompanyTransferRequest;
import one.stand.request.OrdersRequest;
import one.stand.request.RoyaltyRecordRequest;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 分销管理
 * @author Administrator
 */
public interface DistributionService {

    /**
     * 分销管理-数据统计
     *
     * @param request
     * @return
     */
    ResultModel<Map<String, Object>> getRoyaltyData(RoyaltyRecordRequest request);

    /**
     * 设置分销金额比例
     *
     * @param request
     * @return
     */
    ResultModel<Boolean> companyRoyalty(CompanyRoyaltyRequest request);

    /**
     * 分销订单列表
     *
     * @param request
     * @return
     */
    ResultModel<Map<String, Object>> selectRoyaltyOrderList(OrdersRequest request);

    /**
     * 分销订单详情
     *
     * @param request
     * @return
     */
    ResultModel<OrdersModel> getRoyaltyOrderInfo(OrdersRequest request);

    /**
     * 佣金排行列表
     *
     * @param request
     * @return
     */
    ResultModel<Map<String, Object>> selectRoyaltyRankList(RoyaltyRecordRequest request);

    /**
     * 企业到账记录列表
     *
     * @param request
     * @return
     */
    ResultModel<Map<String, Object>> selectCompanyTransferList(CompanyTransferRequest request);

    /**
     * 更改结算状态
     *
     * @param request
     * @return
     */
    ResultModel<Boolean> updateCompanyTransferState(CompanyTransferRequest request);
}
